Skip to content

[SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature#35567

Closed
LuciferYang wants to merge 3 commits intoapache:masterfrom
LuciferYang:SPARK-38175-FOLLOWUP
Closed

[SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature#35567
LuciferYang wants to merge 3 commits intoapache:masterfrom
LuciferYang:SPARK-38175-FOLLOWUP

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Feb 18, 2022

What changes were proposed in this pull request?

This pr is a followup of SPARK-38175 to remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature

Why are the changes needed?

Cleanup unused symbol.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GA

@LuciferYang LuciferYang changed the title [SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature Feb 18, 2022
@github-actions github-actions bot added the CORE label Feb 18, 2022
@LuciferYang LuciferYang marked this pull request as draft February 18, 2022 05:36
}
}

private def replaceLogUrls(exec: v1.ExecutorSummary, urlPattern: String): v1.ExecutorSummary = {
Copy link
Contributor Author

@LuciferYang LuciferYang Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPARK-26311 defines this method with urlPattern and SPARK-26792 change to use logUrlPattern held by ExecutorLogUrlHandler

@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls methods signature Feb 18, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature Feb 18, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature [SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature Feb 18, 2022
@LuciferYang LuciferYang marked this pull request as ready for review February 18, 2022 09:41
val execSummary = super.executorSummary(executorId)
logUrlPattern match {
case Some(pattern) => replaceLogUrls(execSummary, pattern)
case Some(_) => replaceLogUrls(execSummary)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine though could simplify to a condition on logUrlPattern.nonEmpty or something

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like 6be9cbf?

val execList = super.executorList(activeOnly)
logUrlPattern match {
case Some(pattern) => execList.map(replaceLogUrls(_, pattern))
case Some(_) => execList.map(replaceLogUrls)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, let me fix this too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@srowen srowen closed this in 06f4ce4 Feb 19, 2022
@srowen
Copy link
Member

srowen commented Feb 19, 2022

Merged to master

@LuciferYang
Copy link
Contributor Author

thanks @srowen

@LuciferYang LuciferYang deleted the SPARK-38175-FOLLOWUP branch October 22, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants